<?php  
class ControllerModuleSupport extends Controller {
	protected function index($setting) {
		$this->language->load('module/support');
		$this->load->model('module/support');
    	$this->data['heading_title'] = sprintf($this->language->get('heading_title'), $this->config->get('config_name'));   	
		
		$support_data=$this->model_module_support->getSupport();
			
		$data=array();
		foreach($support_data as $support)
		{
			$data[]=array(
				'description'	=>	$support['description'],
				'nickname'		=>	$support['nickname'],
				'image'			=>	$support['image'],
				'phone'			=>	$support['phone'],
				'sort_order'	=>	$support['sort_order'],
				'status'		=>	$support['status']
			);
		}
		
		
		$this->data['supports']=$data;

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/support.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/support.tpl';
		} else {
			$this->template = 'default/template/module/support.tpl';
		}
		
		$this->render();
	}
}
?>